package com.drug.mapper;

import com.drug.domain.User;
import com.drug.domain.UserR;
import com.drug.domain.UserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;
@Mapper
public interface UserMapper {
    //��¼
    List<User> selectUser();

    /**
     * ����û�����Ϣ
     * @param user
     */
    Integer addUser( User user);

    /**
     * �޸�
     * @param userR
     * @return
     */
    int updateUser(UserR userR);

    /**
     * ע��
     * @param UserRole
     * @return
     */
    int registerUser(@Param("userRole") UserRole UserRole);

    String[] selectUsername();

}